package com.amado.course04IfElse;

import java.util.Scanner;

public class IfMaxValue {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个整数：");
		//if else
		int numOne = sc.nextInt();
		int numTwo = sc.nextInt();
		int numThree = sc.nextInt();
		int temp;
		//第一个跟第二个比，找到最小的给numOne
		if(numOne>numTwo){
			temp = numOne;
			numOne = numTwo;
			numTwo = temp;
		}
		//第一个跟第三个比，找到最小的给numOne
		if(numOne>numThree){
			temp = numOne;
			numOne = numThree;
			numThree = temp;
		}
		//第二个跟第三个比，找到最小的给numTwo
		if(numTwo>numThree){
			temp = numTwo;
			numTwo = numThree;
			numThree = temp;
		}
		
		System.out.println(numOne+" "+numTwo+" "+numThree);
	}
}
